<script language="JavaScript">
		/* Scrolls to bottom */
		var messages = document.getElementById('messages');
		messages.scrollTop = messages.scrollHeight;
</script>
<% @current_chatroom.messages.each do |message| %>
	<strong><%=h message.user.name %> wrote at <%= message.time %>:</strong>
	<p><%=h message.message %></p>
<% end %>